Student Details

TL;DR

In this lab, we have practiced some basic filters in image procession such as LPF, HPF using the scipy convolution function.
We had to implement our code for convolution and compare the differences between our convolution function to scipy's using a self implementation of MSE as well.
Also, we had to read about Canny Edge Detection theory and practiced it using Open-CV's implementation on the images with its default parameters.

Imports and Drive Config

LPF

Which mainly used to smooth images. We will use k=3 filter.

HPF

typically used to find edges in the input image. the sum of the filters coefficient has to be zero.

Laplacian Matrix

sobelX Matrix

Vertical lines

sobelY Matrix

Horizontal lines

SobelX + SobelY

All Together

Sharpen

MSE

My 2D Convolution

Compare My Convolution VS. scipy's

MSE myConv2d VS. scipy's

As we can see, very minor errors 🙌🏼

Canny Edge